<style >
.demo-spin-icon-load {
    animation: ani-demo-spin 1s linear infinite;   
}
.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vertical-center-modal .ivu-modal {
  top: 0;
}
@keyframes ani-demo-spin {
    from {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.demo-spin-col {
    height: 100px;
    position: relative;
    border: 1px solid #eee;
}
</style>
<template>
    <Modal v-model="LoadShowInfo" width="200"  class-name="vertical-center-modal">
        <Spin fix style="margin-top: 10px;">
            <Icon type="load-c" size=18 class="demo-spin-icon-load"></Icon>
            <div>正在加载中...</div>
        </Spin>
        <div slot="footer">
        </div>
    </Modal>
</template>
<script>
export default {
    data() {
        return {
            LoadShowInfo: false//默认关闭
        }
    },
    methods: {
        show() {
            //设置开关true开，false关
            this.LoadShowInfo = this.$store.state.LoadShowType;
        }
    },
    watch: {
        //监听store的state.LoadShowType的变化
        "$store.state.LoadShowType": "show"
    }
}
</script>